import React from 'react'
import reactDom from 'react-dom'
import App from './App'
import store from './redux/store'
reactDom.render(<App></App>, document.getElementById('root'))
store.subscribe(() => {
  // dom diff算法  不会引发大面积重排重绘
  reactDom.render(<App></App>, document.getElementById('root'))
})
